package com.woman.beautylive.domain;

import com.woman.beautylive.data.bean.BaseResponse;
import com.woman.beautylive.data.bean.IncomeBean;
import com.woman.beautylive.data.bean.transaction.RechargeInfo;
import com.woman.beautylive.data.bean.transaction.RechargeMapItem;
import com.woman.beautylive.data.repository.SourceFactory;

import java.util.List;

import rx.Observable;

/**
 * @author Muyangmin
 * @since 1.0.0
 */
public class TransactionManager {

    public Observable<BaseResponse<RechargeInfo>> getRechargeMap() {
        return SourceFactory.create().getRechargeMap();
    }

    public Observable<BaseResponse<IncomeBean>> getIncomeBean(){
        return SourceFactory.create().getIncomeBean();
    }

    public Observable<BaseResponse<String>> generateRechargeOrder(String amount){
        return SourceFactory.create().generateRechargeOrder(amount);
    }
}
